package com.expiredpullback;

import org.redisson.api.RBucket;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.concurrent.TimeUnit;

/**
 * @author CKC
 * @DateTime 2021/11/13 8:14
 */
@SpringBootApplication
public class RedisApplicationDemo {

    @Autowired
    private RedissonClient redissonClient;


    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext context = SpringApplication.run(RedisApplicationDemo.class, args);
        RedisApplicationDemo bean = context.getBean(RedisApplicationDemo.class);
        RedissonClient client = bean.redissonClient;

    }
}
